using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Sales
{
    public interface IIntentOrderAppService
    {
        Task<IntentOrderDto> GetAsync(Guid id);
        Task<IntentOrderLineDto> GetChildAsync(Guid id);
        Task<IntentOrderDto> FindAsync(string filter);
        Task<IntentOrderDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<IntentOrderDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<IntentOrderDto>> QueryAsync(FilterGroupRequestDto input);
        Task<PagedResultDto<IntentOrderLineDto>> QueryChildrenAsync(FilterGroupRequestDto input);
        Task<IntentOrderDto> CreateAsync(IntentOrderCreateDto input);
        Task<IntentOrderDto> UpdateAsync(Guid id, IntentOrderUpdateDto input);
        Task<IntentOrderDto> SubmitAsync(Guid id);
        Task<IntentOrderDto> ApproveAsync(Guid id);
        Task<IntentOrderDto> UnApproveAsync(Guid id);
        Task DeleteAsync(Guid id);
    }
}